import Vue from 'vue'
import Vuex from 'vuex'

// basic
import System from './modules/system'
import Home from './modules/home'
import Group from './modules/group'
import Merchant from './modules/merchant'
import Cart from './modules/cart'
import Center from './modules/center'
import Category from './modules/category'

// execute
import ExecCart from './exec/Cart'
import ExecUser from './exec/User'
import ExeOrder from './exec/Order'

// address tree
import AddressTree from './exec/AddressTree'

// like
import Like from './modules/like'

// qrcode
import Qrcode from './modules/qrcode'

// search
import Search from './modules/search'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    System,
    Home,
    Group,
    Merchant,
    Cart,
    Center,
    Category,
    ExecCart,
    ExecUser,
    ExeOrder,
    Like,
    Qrcode,
    AddressTree,
    Search
  }
})
